import Layout from '@/layout'

export default {
  path: '/departments',
  component: Layout,
  name: 'department',
  // redirect: '/department',
  children: [{
    // 这里的path为空,是因为父路由的path是/department,子路由的path为空,就会自动拼接父路由的path
    // 所以这里的path为空,就会变成/department
    // 这里简单理解为默认路由
    path: '',
    name: 'departments',
    component: () => import('@/views/departments/index'),
    meta: { title: '组织架构', icon: 'tree' }
  }]
}
